VERSION 5.00
Begin VB.Form frmSplash 
   BorderStyle     =   0  'None
   Caption         =   "X-Bot: Loading..."
   ClientHeight    =   3720
   ClientLeft      =   210
   ClientTop       =   1365
   ClientWidth     =   7485
   ClipControls    =   0   'False
   ControlBox      =   0   'False
   Icon            =   "frmSplash.frx":0000
   KeyPreview      =   -1  'True
   LinkTopic       =   "Form2"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   3720
   ScaleWidth      =   7485
   StartUpPosition =   2  'CenterScreen
   Begin VB.Label lblOTBN 
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      Caption         =   "Powered by OTBN.tcl 2.3 by Overtech Technologies: OTBN without BS"
      BeginProperty Font 
         Name            =   "Courier New"
         Size            =   8.25
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H00000000&
      Height          =   210
      Left            =   120
      TabIndex        =   2
      Top             =   3240
      Width           =   6825
   End
   Begin VB.Shape Shape1 
      Height          =   3720
      Left            =   0
      Top             =   0
      Width           =   7485
   End
   Begin VB.Label Status 
      Alignment       =   2  'Center
      BackStyle       =   0  'Transparent
      Caption         =   "Loading..."
      BeginProperty Font 
         Name            =   "Times New Roman"
         Size            =   20.25
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H00C00000&
      Height          =   975
      Left            =   0
      TabIndex        =   1
      Top             =   2400
      Width           =   7455
   End
   Begin VB.Label lblVersion 
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      Caption         =   "X-Bot SP-1: Version"
      BeginProperty Font 
         Name            =   "Arial"
         Size            =   9.75
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H00FF8080&
      Height          =   240
      Left            =   120
      TabIndex        =   0
      Top             =   3480
      Width           =   1845
   End
End
Attribute VB_Name = "frmSplash"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False

Option Explicit


Private Sub Form_Load()
' Load Images
On Error GoTo 0
Load xsplash

Me.Icon = xsplash.Icon

Me.Picture = xsplash.Picture

    frmSplash.Status.Caption = "Displaying version information..."
    lblVersion.Caption = "Version " & App.Major & "." & App.Minor & "." & App.Revision
'    lblProductName.Caption = App.Title
    
    frmSplash.Status.Caption = "Loading graphics..."
    GentleOpen Me
'Me.Visible = True
    'DoEvents
    
' Parse X-Bot mIRC Script for more security
frmSplash.Status.Caption = "Securing mIRC Script..."
On Error Resume Next
Dim Incoming As String
Dim MyPassVar As String

MyPassVar = "%var" & CStr(Int(Rnd(3276632766#) * 3276632766#))

Open App.Path & "\x-bot.xbot.mrc" For Input As #1
Open App.Path & "\x-bot.mrc" For Output As #2
    Do Until EOF(1)
        Line Input #1, Incoming
        Print #2, Parse(Incoming, "%xbotpassword", MyPassVar)
    Loop
Close
    
frmSplash.Status.Caption = "Loading Main X-Bot Program..."
    Load Window
    DoEvents
    
    GentleClose Me
    GentleOpen Window
    
    Unload Me
End Sub

Sub Finalize_Install()
Dim ReturnValue As String
On Error GoTo errorhandler:

ChDrive Left(App.Path, 1) & ":\"
ChDir App.Path '& "\windrop"
ReturnValue = Shell(App.Path & "\install.bat", vbNormalFocus)

frmSplash.Caption = "Finalizing Installation..."
DoEvents
DoEvents
DoEvents
End

errorhandler:
If Err.Number > 0 Then
    Exit Sub
End If
End Sub

